﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace HomeStayWebCP.Models.BusinessObject
{
    public class CommentObject
    {
        public int CommentID { get; set; }
        [DataType(DataType.MultilineText)]
        [Required(ErrorMessage = "Require")]
        public string Content { get; set; }
        public int PostID { get; set; }
        //public int UserID { get; set; }
        public string UserName { get; set; }
        public string DateComment { get; set; }
        public long? rows { get; set; }

        public virtual PostObject Post { get; set; }
    }
}